package com.hongdee.crm.card.entity;

import com.hongdee.annotation.ExcelData;
import com.hongdee.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by Liu XiaoLong
 * Date: 2018/2/27.
 * Remark:
 */
@Entity
@Table(name = "T_CRM_CARD")
public class TCrmCard extends BaseEntity{

    // 卡号
    @ExcelData("卡号")
    @Column(name = "card_num",length = 32,columnDefinition = "VARCHAR(32) COMMENT '卡号'")
    private String cardNum;

    // 手机号
    @ExcelData("手机号")
    @Column(name = "tel_num",length = 32,columnDefinition = "VARCHAR(32) COMMENT'手机号'")
    private String telNum;

    // 项目
    @ExcelData("项目")
    @Column(name = "item",length = 64,columnDefinition = "VARCHAR(64) COMMENT'项目'")
    private String item;

    // 卡类别 1:储值卡 2:美车卡
    @ExcelData("卡类别")
    @Column(name = "card_type",length = 10,columnDefinition = "VARCHAR(10) COMMENT'卡类别 1:储值卡 2:美车卡'")
    private String cardType;

    // 状态 0:已删除 1:未过期 2:已过期
    @Column(name = "status",length = 10,columnDefinition = "VARCHAR(10) COMMENT'状态 0:已删除 1:未过期 2:已过期'")
    private String status;

    // 单位类别
    @ExcelData("单位类别")
    @Column(name = "unit_type",length = 10,columnDefinition = "VARCHAR(10) COMMENT'单位类别'")
    private String unitType;

    // 剩余值
    @ExcelData("剩余值")
    @Column(name = "value",length = 32,columnDefinition = "VARCHAR(32) COMMENT'剩余值'")
    private String value;

    // 开始日期
    @ExcelData("开始日期")
    @Column(name = "start_date", length = 22, columnDefinition = "BIGINT COMMENT '开始日期'")
    private Long startDate;

    // 到期日期
    @ExcelData("到期日期")
    @Column(name = "end_date", length = 22, columnDefinition = "BIGINT COMMENT '到期日期'")
    private Long endDate;

    // 售卡日期
    @ExcelData("售卡日期")
    @Column(name = "sale_date", length = 22, columnDefinition = "BIGINT COMMENT '售卡日期'")
    private Long saleDate;

    // 卡主姓名
    @ExcelData("卡主姓名")
    @Column(name = "owner_name",length = 32,columnDefinition = "VARCHAR(32) COMMENT'卡主姓名'")
    private String ownerName;

    // 售卡人姓名
    @ExcelData("售卡人姓名")
    @Column(name = "seller_name",length = 32,columnDefinition = "VARCHAR(32) COMMENT'售卡人姓名'")
    private String sellerName;

    // 售卡门店
    @ExcelData("售卡门店")
    @Column(name = "store_name",length = 32,columnDefinition = "VARCHAR(32) COMMENT'售卡门店'")
    private String storeName;

    //导入公司ID
    @Column(name = "company_id", length = 32, columnDefinition = "VARCHAR(32) COMMENT '导入公司ID'")
    private String companyId;

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getTelNum() {
        return telNum;
    }

    public void setTelNum(String telNum) {
        this.telNum = telNum;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getUnitType() {
        return unitType;
    }

    public void setUnitType(String unitType) {
        this.unitType = unitType;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Long getStartDate() {
        return startDate;
    }

    public void setStartDate(Long startDate) {
        this.startDate = startDate;
    }

    public Long getEndDate() {
        return endDate;
    }

    public void setEndDate(Long endDate) {
        this.endDate = endDate;
    }

    public Long getSaleDate() {
        return saleDate;
    }

    public void setSaleDate(Long saleDate) {
        this.saleDate = saleDate;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }
}
